package com.rain.friend.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


@FeignClient("rain-user")
public interface UserClient {

    /**
     * 更新粉丝数量
     * @param userid
     * @param fans
     */
    @RequestMapping(value="/user/incfans/{userid}/{fans}",method = RequestMethod.PUT)
    void incFanscount(@PathVariable("userid") String userid, @PathVariable("fans") int fans);


    /**
     * 更新关注数量
     * @param userid
     * @param follow
     */
    @RequestMapping(value="/user/incfollow/{userid}/{follow}",method = RequestMethod.PUT)
    void incFollowcount(@PathVariable("userid") String userid, @PathVariable("follow") int follow);
}
